package com.aier.school.common;

import java.util.HashMap;
import java.util.Map;

public class TeacherLeaveType {

    /**
     * 家长请假状态 1:未处理,-1:驳回，10:通过
     */
    public static Map<Short,String> stuLeaveStateMap;
    
    /**
     * 请假状态 1:待审核,-1:驳回，10:通过
     */
    public static Map<Short,String> leaveStateMap;
    public static final short STATE_SH=1;
    public static final short STATE_BH=-1;
    public static final short STATE_CL=10;
    
    /**
     * 请假原因类型 1:年假,2:事假,3:病假,4:产假,5:婚假,6:其它
     */
    public static Map<Integer,String> leaveTypeResoneMap;
    public static final Integer TYPE_RESONSE_NJ=1;
    public static final Integer TYPE_RESONSE_SJ=2;
    public static final Integer TYPE_RESONSE_BJ=3;
    public static final Integer TYPE_RESONSE_CJ=4;
    public static final Integer TYPE_RESONSE_HJ=5;
    public static final Integer TYPE_RESONSE_QT=6;    
    
    /**
     * 请假处理类型 1:正常请假,2:补假,3:异常处理
     */
    public static Map<Integer,String> leaveTypeHandleMap;
    public static final Integer TYPE_HABDLE_NJ=1;
    public static final Integer TYPE_HABDLE_SJ=2;
    public static final Integer TYPE_HABDLE_BJ=3;
    
    /**
     * 异常原因类型 1:忘带卡,2:卡损坏,3:请假未批,4:门禁异常,5:其它
     */
    public static Map<Integer,String> leaveExceptionResoneMap;
    public static final Integer EXCEPTION_RESONSE_WDK=1;
    public static final Integer EXCEPTION_RESONSE_KSH=2;
    public static final Integer EXCEPTION_RESONSE_QJWP=3;
    public static final Integer EXCEPTION_RESONSE_MJYC=4;
    public static final Integer EXCEPTION_RESONSE_QT=5;
    
    static{
        stuLeaveStateMap=new HashMap<Short,String>();
        stuLeaveStateMap.put(STATE_SH,"未处理");
        stuLeaveStateMap.put(STATE_BH,"驳回");
        stuLeaveStateMap.put(STATE_CL,"通过");
        
        leaveStateMap=new HashMap<Short,String>();
        leaveStateMap.put(STATE_SH,"待审核");
        leaveStateMap.put(STATE_BH,"驳回");
        leaveStateMap.put(STATE_CL,"通过");
        
        leaveTypeResoneMap=new HashMap<Integer,String>();
        leaveTypeResoneMap.put(TYPE_RESONSE_NJ,"年假");
        leaveTypeResoneMap.put(TYPE_RESONSE_SJ,"事假");
        leaveTypeResoneMap.put(TYPE_RESONSE_BJ,"病假");
        leaveTypeResoneMap.put(TYPE_RESONSE_CJ,"产假");
        leaveTypeResoneMap.put(TYPE_RESONSE_HJ,"婚假");
        leaveTypeResoneMap.put(TYPE_RESONSE_QT,"其它");

        leaveTypeHandleMap=new HashMap<Integer,String>();
        leaveTypeHandleMap.put(TYPE_HABDLE_NJ,"正常请假");
        leaveTypeHandleMap.put(TYPE_HABDLE_SJ,"补假");
        leaveTypeHandleMap.put(TYPE_HABDLE_BJ,"异常处理");
        
        leaveExceptionResoneMap=new HashMap<Integer,String>();
        leaveExceptionResoneMap.put(EXCEPTION_RESONSE_WDK,"忘带卡");
        leaveExceptionResoneMap.put(EXCEPTION_RESONSE_KSH,"卡损坏");
        leaveExceptionResoneMap.put(EXCEPTION_RESONSE_QJWP,"请假未批");
        leaveExceptionResoneMap.put(EXCEPTION_RESONSE_MJYC,"门禁异常");
        leaveExceptionResoneMap.put(EXCEPTION_RESONSE_QT,"其它");
    }
}